package com.chart.chart.domian;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.chart.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 学科分类
 *
 * @author 罗继全
 * 2024/7/6 14:54
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ChartSubjectType extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 参数主键 */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /** 父级id */
    private Long parentId;

    /** 领域名称 */
    private String technologyName;

    /** 领域代码 */
    private String technologyCode;

    private Integer sort;

  /*  private   Long codeId;*/

    @TableField(exist = false)
    private List<ChartSubjectType> children;

    @TableField(exist = false)
    private ChartSubjectType subset;
}
